package com.jiazhong.aop.annoaop;

import org.springframework.stereotype.Component;

/**
 * @Auther:shuXin
 */
@Component
public class CalculatorImpl implements Calculator {
    @Override
    public int add(int i, int j) {
        //核心的代码
        int result = i + j;
        return result;
    }

    @Override
    public int aub(int i, int j) {
        int result = i - j;
        return result;
    }

    @Override
    public int mul(int i, int j) {
        int result = i * j;
        return result;
    }

    @Override
    public int dev(int i, int j) {
        int result = i / j;
        return result;
    }
}
